package com.example.roles_management_p1.service;
import com.pojo.Entity.Roles;
import com.pojo.dto.ToRoles;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IRolesService {
    public Integer add(HttpServletRequest httpServletRequest, Roles role);
    public Integer isexist(HttpServletRequest httpServletRequest);
    public Integer update(HttpServletRequest httpServletRequest,Roles role);
    public Roles getroles(Integer rID);
    public List<ToRoles> getlroles(Integer Page,Integer Number,Integer uState);
    public  Integer delete(Integer rID);

    public Roles getmyroles(HttpServletRequest httpServletRequest);
}
